package com.xk.app_home.repo

import android.util.Log
import com.example.repo.BaseRepository
import com.example.repo.RespStateData
import com.xk.app_home.data.Banner
import com.xk.app_home.api.HomeApi


class HomeRepo(private val api: HomeApi): BaseRepository() {

    suspend fun getBanner(data: RespStateData<List<Banner>>) {
        Log.d("TestSus", "rp1")
        dealResp({ api.getBanner() }, data)
        Log.d("TestSus", "rp2")
    }

}
